package com.cd.system.jpa.repository;

import com.cd.system.jpa.entity.DailyUserCount;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Repository("dailyUserCountRepository")
public interface DailyUserCountRepository extends CrudRepository<DailyUserCount, Long> {

    @Query("select d from DailyUserCount d order by d.date asc ")
    List<DailyUserCount> findAll();

}
